<%@page import="mindmap.Epic"%><%@page import="java.io.PrintWriter"%><%@ page contentType="text/html;charset=UTF-8" %><%@ page import="java.sql.*" %><%@ page import="java.sql.DriverManager" %><%@ page import="java.sql.ResultSet" %><% 

mindmap.ObjectDB db = new mindmap.ObjectDB();
try{
	db.initialiseConnexion();
	mindmap.Epic myEpic = new Epic(db,
		request.getParameter("id"),
		request.getParameter("name"),
		request.getParameter("description"),
		request.getParameter("comment")
	);
	
	if(myEpic.editDB()){ 
		out.print("L'épic a bien été enregistré");
	}else{
		response.setStatus(500,"enregistrement error !");	
	}
	db.closeConnexion();
	
}catch(Exception e){
	response.setStatus(500,"error");	
}
%>

